<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- <script src="https://cdn.jsdelivr.net/npm/echarts@5.3.3/dist/echarts.min.js"></script> -->
    <script src="./echatrs.main.js"></script>
</head>

<body>
    <div class="id" style="width: 800px;height: 400px;margin: auto;">
        <div id="main" style="width: 100%;height: 100%;"></div>
    </div>
</body>
<script>
    var chartDom = document.getElementById('main');
    var myChart = echarts.init(chartDom);
    var option;

    option = {
        xAxis: {
            type: 'category',
            // data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],

        },
        yAxis: {
        },
        dataset: {
            source: [
                // 有了上面 dimensions 定义后，下面这五个维度的名称分别为：
                // 'date', 'open', 'close', 'highest', 'lowest'
                ['Mon', 44, 55, 66, 2],
                ['Toe', 6, 16, 23, 10],
                ['Web', 16, 36, 30, 3],
                ['Thu', 26, 46, 20, 1],
                ['Fri', 36, 26, 33, 20],
                ['Sat', 26, 66, 43, 34],
                ['Sun', 46, 36, 63, 45],
            ]
        },
        series: [
            {type:'bar'},
            {type:'line'},
            {type:'line'},
            {type:'bar'},
           
        ]
    };

    option && myChart.setOption(option);
</script>

</html>